package com.nbsaas.boot.product.rest.convert;

import com.nbsaas.boot.product.data.entity.ProductModel;
import com.nbsaas.boot.product.api.domain.simple.ProductModelSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商品规格模型-列表对象转换器
*/

public class ProductModelSimpleConvert implements Converter<ProductModelSimple, ProductModel> {




@Override
public ProductModelSimple convert(ProductModel source) {
    ProductModelSimple result = new ProductModelSimple();

                result.setNote(source.getNote());
                result.setCode(source.getCode());
                result.setName(source.getName());
                result.setId(source.getId());
                result.setAddDate(source.getAddDate());
                result.setLastDate(source.getLastDate());


    return result;
}

}